package com.har.common.utils;

import com.alibaba.fastjson.JSONObject;

/**
 * 请求报文
 * 
 * @author tanzeng
 *
 */
public class ReqMessage {
		
	private String partnerId;
	
	private String appId;
	
	private String msgKey;
	
	private String data;
	
	private JSONObject dataJson;

//	private Partner partner;

//	private App app;
	
	private String devType;
	
	private String sign;
	
	private String platform; // 平台

	private String userInfo;

	private String version;

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getDevType() {
		return devType;
	}

	public void setDevType(String devType) {
		this.devType = devType;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getMsgKey() {
		return msgKey;
	}

	public void setMsgKey(String msgKey) {
		this.msgKey = msgKey;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

//	public Partner getPartner() {
//		return partner;
//	}
//
//	public void setPartner(Partner partner) {
//		this.partner = partner;
//	}
//
//	public App getApp() {
//		return app;
//	}
//
//	public void setApp(App app) {
//		this.app = app;
//	}
	
	public JSONObject getDataJson() {
		return dataJson;
	}

	public void setDataJson(JSONObject dataJson) {
		this.dataJson = dataJson;
	}

	public String getPartnerId() {
		return partnerId;
	}

	public void setPartnerId(String partnerId) {
		this.partnerId = partnerId;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getPlatform() {
		return platform;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}

	public JSONObject getReqMessage() {

		JSONObject message = new JSONObject();

		message.put("AppId", appId);
		message.put("PartnerId", partnerId);
		message.put("MsgKey", msgKey);
		message.put("Data", data);
		message.put("Sign", sign);

		return message;
	}

	public String getUserInfo() {
		return userInfo;
	}

	public void setUserInfo(String userInfo) {
		this.userInfo = userInfo;
	}
}
